package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 课程表，属于哪类科目
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "course_info")
public class CourseEntity extends BaseEntity {


    @TableId(value = "courseId", type = IdType.INPUT)
    private String courseId;
    @TableField(value = "courseName")
    private String courseName;
    @TableField(value = "type")
    private int type;
    @TableField(value = "courseNumber")
    private String courseNumber;
    @TableField(value = "classHour")
    private String classHour;
    @TableField(value = "price")
    private String price;
    @TableField(value = "subjectId")
    private String subjectId;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "createTime")
    private String createTime;
    @TableField(value = "isUsed")
    private int isUsed;


    public String getCourseId () {
        return courseId;
    }

    public void setCourseId (String courseId) {
        this.courseId = courseId;
    }


    public String getCourseName () {
        return courseName;
    }

    public void setCourseName (String courseName) {
        this.courseName = courseName;
    }


    public long getType () {
        return type;
    }

    public void setType (int type) {
        this.type = type;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }

    public String getCourseNumber () {
        return courseNumber;
    }

    public void setCourseNumber (String courseNumber) {
        this.courseNumber = courseNumber;
    }


    public String getClassHour () {
        return classHour;
    }

    public void setClassHour (String classHour) {
        this.classHour = classHour;
    }


    public String getPrice () {
        return price;
    }

    public void setPrice (String price) {
        this.price = price;
    }


    public String getSubjectId () {
        return subjectId;
    }

    public void setSubjectId (String subjectId) {
        this.subjectId = subjectId;
    }


    public String getUserId () {
        return userId;
    }

    public void setUserId (String userId) {
        this.userId = userId;
    }


    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }


    public int getIsUsed () {
        return isUsed;
    }
}
